package com.graduation.lastproject.service.home.HomeHighActice;

import com.graduation.lastproject.entity.*;

import java.util.List;
import java.util.Map;

public interface HomeHighService {
    /*查询当前用户的所有订单*/
    List<Bookorder> getAllBookorder(String myPhone);

    /*删除订单*/
    int deleteOrderById(String id);

    /*新增评论*/
    int insertReview(Map<String, Object> map);

    /*查询用户的所有评论*/
    List<Review> getAllReview(String myPhone);

    /*删除评论*/
    int deleteReviewById(String id);

    /*追加评论*/
    int reviewAdd(Map<String, Object> map);

    /*查询不同商品*/
    List<Commodity> getCommodityList(int state);

    /*兑换商品*/
    int insertExchangeOrder(Map<String, Object> map);

    List<Commodityorder> getAllComorder(String id);

    /*删除当前用户积分兑换记录*/
    int deleteMycommodityOrderById(String id);

    /*确认收货*/
    int getInMycommodityOrderById(String id);

    /*积分更新后 获取最新积分*/
    User getUserInfo(String id);
}
